package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @ClassName ScheduleRepository
 * @Description: 类描述
 * @Author: admin
 * @CreateDate: 2024/6/4 21:51
 * @UpdateUser: 更新人
 * @UpdateDate: 2024/6/4 21:51
 * @UpdateRemark: 更新的信息
 * @Version: 1.0
 */

@Repository
public interface ScheduleRepository extends MongoRepository<Schedule, String> {
    //根据医院编号和排班id查询排班信息
    Schedule getScheduleByHoscodeAndHosScheduleId(String hoscode, String hosScheduleId);

    List<Schedule> findScheduleByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date toDate);
}
